home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_usrdoc / PPPSETUP / PPP-COMP.{_3 < prev    next >
Text File  |  1999-09-17  |  6KB  |  193 lines

  1. =============================================================================
  2. PPP-compile guide... (1-28-98)
  3.  
  4. You can get the latest version of ppp from the home site of ppp.
  5.  
  6. ftp://cs.anu.edu.au/pub/software/ppp   <-Home site.)
  7.  
  8. ppp-2.3.3.tar.gz etc.                    
  9. =============================================================================
  10.  
  11. ~# tar xzvf ppp-2.3.3.tar.gz
  12.  
  13. ppp-2.3.3# configure
  14.          # make kernel               <-Then compile the kernel,
  15.          # make                        see below.)
  16.      # make install
  17.      # cp -r scripts /etc/ppp
  18.        
  19. If your service provider uses (c)all (b)ack (c)onfiguration (p)rotocol,
  20. you have to compile ppp-2.?.? to support cbcp.
  21.  
  22. Do this in ppp-2.?.? to get cbcp support.
  23.  
  24. ppp-2.3.3# patch -p1 < README.cbcp
  25.  
  26. If you want microsoft ms-chap-80 support do this below in 
  27. ppp-2.3.3/pppd/Makefile.linux.
  28.  
  29. # Uncomment the next 2 lines to include support for Microsoft's
  30. # MS-CHAP authentication protocol.
  31. CHAPMS=y
  32. USE_CRYPT=y
  33.  
  34. Read: ppp-2.3.3/README.MSCHAP80
  35.  
  36. You need to have 'libdes.a' on your system to compile ppp-2.?.? with 
  37. ms-chap-80 support, either in /lib/libdes.a or /usr/lib/libdes.a, also 
  38. put 'des.h' from libdes in /usr/include/des.h.
  39.  
  40. If you happen to have /usr/lib/libcrypt.a or libcrypt.so.? on your 
  41. system you don't need to get libdes, ppp-2.3.3 will use it instead.
  42.  
  43. You can get libdes from: 
  44.  
  45. ftp://ftp.psy.uq.oz.au/pub/Crypto/DES "libdes-4.01.tar.gz"
  46.  
  47. 4.01 is the latest as of this writing, there's also a patch
  48. for 4.01 libdes-4.01.patch1.
  49.  
  50. libdes-4.01# patch -p0 < libdes-4.01.patch1
  51. libdes-4.01# make x86-elf   <-To compile on linux elf system.)
  52.  
  53. I have no experience with cbcp or ms-chap-80, but a sample options file 
  54. might look like this.
  55.  
  56. Sample /etc/ppp/options file.
  57.  
  58. lock
  59. defaultroute
  60. noipdefault
  61. modem
  62. /dev/modem
  63. 38400
  64. crtscts
  65. debug
  66. passive
  67. callback "7771818"
  68. user "jerry"              
  69. remotename "foo.boo.com"      
  70.  
  71. Your "phone number" for the callback, include the quotation marks.
  72.  
  73. The 'user' option is just required for pap, chap, or ms-chap, it would 
  74. be your username when you login to your service provider.
  75.  
  76. In addition to the name option ms-chap-80 requires the remotename option, 
  77. it would be your service providers domain name.
  78.  
  79. If your service provider is using PAP, your /etc/ppp/pap-secrets file
  80. should look like this.
  81.  
  82. # Username      Server       Password
  83. jerry             *          password
  84.  
  85. If your service provider is using CHAP, your /etc/ppp/chap-secrets file
  86. should look like this.
  87.  
  88. # Username      Server       Password
  89. jerry        foo.boo.com     password
  90. foo.boo.com       jerry      password
  91.  
  92. The Server should be your internet service providers domain name,
  93. if not sure just put * for Server.
  94.  
  95. The Password should be the password for jerry.
  96.  
  97. The permissions on /etc/ppp/pap-secrets or chap-secrets should be.
  98.  
  99. ~# chmod 600 /etc/ppp/pap-secrets
  100.  
  101. More and more service providers are using PAP or CHAP for authentication, 
  102. you should ask your ISP if they are using PAP or CHAP, it could save you 
  103. a lot of wasted time.
  104.  
  105. If you're having a problem making the ppp connection, look at the
  106. /var/log/messages and or debug file for the output from pppd and
  107. chat.
  108.  
  109. The output from pppd and chat should also be in the /var/log/pppd.chat
  110. file if you're using pppsetup.
  111.  
  112. =============================================================================
  113. Compiling PPP as a module...
  114. =============================================================================
  115.  
  116. ~# dmesg | grep -i ppp
  117. PPP: version 2.?.?    <-You have PPP in the kernel.)
  118.  
  119. If you have PPP compiled in the kernel, you'll have to compile the
  120. whole kernel for the new ppp.
  121.  
  122. If you don't have PPP compiled in the kernel you don't have to compile
  123. the whole kernel, just answer yes to these questions below and (m)odule 
  124. for ppp.
  125.  
  126. If your present kernel is 2.0.33, the kernel source in /usr/src/linux
  127. must be from 2.0.33 also etc.
  128.  
  129. ~# uname -r      <-To see what kernel version you're running.)
  130. 2.0.33       
  131.  
  132. Look at /usr/src/linux/Makefile, it should say 2.0.33 also etc.
  133.  
  134. VERSION = 2
  135. PATCHLEVEL = 0
  136. SUBLEVEL = 33
  137.  
  138. If your kernel was 2.0.33 and the kernel source in /usr/src/linux was
  139. 2.0.34 for example, you could change it to 2.0.33.
  140.  
  141. VERSION = 2
  142. PATCHLEVEL = 0
  143. SUBLEVEL = 34
  144.  
  145. VERSION = 2             <-Change it to match 'uname -r' then put it
  146. PATCHLEVEL = 0            back after 'make modules_install' below.
  147. SUBLEVEL = 33
  148.  
  149. ~# cd /usr/src/linux
  150. /usr/src/linux# make config      <-Configure kernel source.)
  151.  
  152. It doesn't matter how you answer all the other questions, you can just 
  153. press enter and accept the defaults, just be sure that these questions 
  154. below are answered like this.
  155.  
  156. etc...
  157. Enable loadable module support (CONFIG_MODULES) [Y/n/?] y 
  158. etc...
  159. Networking support (CONFIG_NET) [Y/n/?] y 
  160. etc...
  161. TCP/IP networking (CONFIG_INET) [Y/n/?] y 
  162. etc...
  163. Network device support (CONFIG_NETDEVICES) [Y/n/?] y
  164. etc...
  165. PPP (point-to-point) support (CONFIG_PPP) [N/y/m/?] m   <-Answer (m)odule.)
  166. etc...
  167.  
  168. /usr/src/linux# make modules              <-Compile ppp module.)
  169.               # make modules_install      <-Install ppp etc. modules.)
  170.  
  171. You should have a /lib/modules/2.0.33/net directory with these
  172. modules in it.
  173.  
  174. ppp.o
  175. slhc.o
  176. bsd_comp.o
  177. ppp_deflate.o
  178.  
  179. ~# depmod -a         <-Create /lib/modules/?/modules.dep file.)
  180.  # modprobe slhc     <-You should load slhc also.)
  181.  # modprobe ppp      <-To load the ppp module.)
  182.  # lsmod             <-To see what modules are loaded.)
  183.  # rmmod slhc        <-To unload slhc.)
  184.  # rmmod ppp         <-To unload ppp.)
  185.  
  186. If you have any linux ppp questions or problems, you can post them 
  187. to these newsgroups.
  188.  
  189. comp.os.linux.networking
  190. comp.protocols.ppp
  191.  
  192. End... (By Kent Robotti) (1-28-98)
  193. =============================================================================